﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Collections;
using IBatisNet.DataMapper;
using TumbaloSoft.Models;

namespace TumbaloSoft.Helpers
{
    public class HelperDistrito
    {
        static public IList selectAll()
        {
            return Mapper.Instance().QueryForList("DistritoSelectAll", null);
        }
        static public Distrito selectById(int id)
        {
            IList l= Mapper.Instance().QueryForList("DistritoSelectById", id);
            Distrito d = (Distrito)l[0];
            return d;
        }
    }
}